package com.transfer.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.staff.entity.Staff;

@Entity
@Table(name="t_title_appoint")
public class TitleAppoint {
	private Long id;
	private Staff staff;
	private String appointTitle;//聘任职称
	private Date appointDate;//聘任时间
	private String staffName;
	private String staffNum;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	@ManyToOne(cascade=CascadeType.ALL)
	public Staff getStaff() {
		return staff;
	}
	public String getAppointTitle() {
		return appointTitle;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getAppointDate() {
		return appointDate;
	}
	
	public String getStaffName() {
		return staffName;
	}
	public String getStaffNum() {
		return staffNum;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public void setAppointTitle(String appointTitle) {
		this.appointTitle = appointTitle;
	}
	public void setAppointDate(Date appointDate) {
		this.appointDate = appointDate;
	}
	public void setStaff(Staff staff) {
		this.staff = staff;
	}
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	public void setStaffNum(String staffNum) {
		this.staffNum = staffNum;
	}
	
	
}
